# -*- coding: utf-8 -*-
import json
import time

def store(filename, data):
    with open(filename, 'w') as json_file:
        json_file.write(json.dumps(data))

def load(filename):
    with open(filename) as json_file:
        data = json.loads(json_file)
        return data

if __name__ == "__main__":
    data = {}
    data["last"]=time.strftime("%Y%m%d")
    store(data)
    data = load()
    print data["last"]